import Vue from 'vue'
import VueRouter from 'vue-router'
import About from '../components/About'
import Home from '../components/Home'

//应用路由器插件
Vue.use(VueRouter)

//创建并暴露路由器
export default new VueRouter({
	mode:'history', //路由器的工作模式，有两种，分别是：hash和history
	routes:[
		{
			path:'/about',
			component:About
		},
		{
			path:'/home',
			component:Home
		}
	]
})